package com.j283_5.wisdom_park.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public class Alarules implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 告警id
     */
    @TableId(value = "al_id", type = IdType.AUTO)
    private Integer alId;

    /**
     * 告警规则名
     */
    private String alName;

    /**
     * 管理员id
     */
    private Integer adId;

    /**
     * 推送方式（0手机 1APP）
     */
    private Integer alMode;

    /**
     * 告警规则
     */
    private String alRules;

    /**
     * 告警类型（0灾害警告 1线路故障 2设备故障）
     */
    private Integer alType;

    /**
     * 告警等级（1一级 2二级 3特级）
     */
    private Integer alGrade;

    /**
     * 创建时间
     */
    private LocalDate alCreatetime;


    public Integer getAlId() {
        return alId;
    }

    public void setAlId(Integer alId) {
        this.alId = alId;
    }

    public String getAlName() {
        return alName;
    }

    public void setAlName(String alName) {
        this.alName = alName;
    }

    public Integer getAdId() {
        return adId;
    }

    public void setAdId(Integer adId) {
        this.adId = adId;
    }

    public Integer getAlMode() {
        return alMode;
    }

    public void setAlMode(Integer alMode) {
        this.alMode = alMode;
    }

    public String getAlRules() {
        return alRules;
    }

    public void setAlRules(String alRules) {
        this.alRules = alRules;
    }

    public Integer getAlType() {
        return alType;
    }

    public void setAlType(Integer alType) {
        this.alType = alType;
    }

    public Integer getAlGrade() {
        return alGrade;
    }

    public void setAlGrade(Integer alGrade) {
        this.alGrade = alGrade;
    }

    public LocalDate getAlCreatetime() {
        return alCreatetime;
    }

    public void setAlCreatetime(LocalDate alCreatetime) {
        this.alCreatetime = alCreatetime;
    }

    @Override
    public String toString() {
        return "Alarules{" +
        "alId=" + alId +
        ", alName=" + alName +
        ", adId=" + adId +
        ", alMode=" + alMode +
        ", alRules=" + alRules +
        ", alType=" + alType +
        ", alGrade=" + alGrade +
        ", alCreatetime=" + alCreatetime +
        "}";
    }
}
